<template>
    <div class="personal">
        个人中心：vuex的学习
        <div>
            <el-button size="mini" @click="handleAddStore">+</el-button>
            store中的数据：{{ this.$store.state.count }}
        </div>
    </div>
</template>
/* Vuex的学习 */
<script>
export default {
    name: 'Personal',
    data() {
        return {
            
        }
    },
    created() {
        // console.log('Vuex数据', this.$store.state)
    },
    methods: {
        handleAddStore() {
            // console.log('触发Vuex的改变')
            this.$store.commit('increment')
        }
    },
    // computed
}
</script>